/**
 * 
 */
package org.bamboo.easyejb.demo.weather.model;

import java.io.Serializable;
import java.util.Date;

/**
 * A value object storing weather data.
 * @author Raymond KK He, Guangzhou China
 * Nov 26, 2008
 *
 */
public class WeatherInfo implements Serializable {
	
	private String city;
	private Date date;
	private String weather; //sunny,cloudy,windy,snowy etc.
	private int temperature;
	
	public WeatherInfo(String city,Date date,String weather,int temperature) {
		this.city = city;
		this.date = date;
		this.weather = weather;
		this.temperature = temperature;
	}
	
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getTemperature() {
		return temperature;
	}
	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}
	public String getWeather() {
		return weather;
	}
	public void setWeather(String weather) {
		this.weather = weather;
	}	
	
	public String toString() {
		StringBuffer buffer = new StringBuffer(32).append("[WeatherInfo(");
		buffer.append("city:").append(city).append(",")
			  .append("date:").append(date).append(",")
			  .append("weather:").append(weather).append(",")
			  .append("temperature:").append(temperature).append(")]");
		return buffer.toString();
	}
}
